package cn.justforchris.system.mapper;

import cn.justforchris.system.domain.Employee;
import cn.justforchris.system.domain.Role;
import cn.justforchris.system.query.EmployeeQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    void insertEmployee(Employee employee);

    void updateEmployee(Employee employee);

    void deleteEmployee(Long id);

    void patchDelete(Long[] ids);

    Employee getEmployeeById(Long id);

    List<Employee> getAll();

    List<Employee> queryPage(EmployeeQuery queryPage);

    List<Role> findRoleByEmployeeId(Long id);


    void addEmployeeRole(Employee employee);

    void deleteEmployeeRole(Long id);

    Long findByLogininfoId(Long id);


}
